package graphs;
//表示边
public class Edge {
    public int weight;  //权重  或者距离
    public Node from;  //这条线从哪出发
    public Node to;   //这条线到哪儿去

    public Edge(int weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
